import React from 'react'
//获取列表
export async function apiUserPage(params = {}){
    return await React.$post('management/sys/user/storeUserPage', params);
}
//删除数据
export async function apiUserDel(params){
    return await React.$post('management/sys/user/delStoreUser', params)
}
//冻结、解冻
export async function apiUserState(params){
    return await React.$post('management/sys/user/changeState', params)
}
//获取所有用户
export async function apiRoleList(params){
    return await React.$post('management/sysStoreRole/page', params)
}
//新增数据
export async function apiUserAdd(params){
    return await React.$post('management/sys/user/addStoreUser', params)
}
//修改数据
export async function apiUserUpdate(params){
    return await React.$post('management/sys/user/editStoreUser', params)
}
//查看数据
export async function apiUserDetails(params){
    return await React.$post('management/sys/user/view', params)
}
//修改角色权限
export async function apiGetUpdateRolesByUserId(params) {
    return await React.$post('management/sys/user/updateStoreRolesByUserId', params)
}
// 操作-修改门店用户密码
export async function apiEditStoreUserPassword(params) {
  return await React.$post('/management/sys/user/editStoreUserPassword', params)
}
